package com.common.pojo.app;

import lombok.Data;

/**
 * 引导页数据模型
 */
public class OnboardingItem {
    private String title;
    private String description;
    private int imageRes;  // 图片资源 ID（或 Lottie 动画路径）
    private boolean isLastPage;  // 是否为最后一页

    // 构造函数、getter/setter

    public OnboardingItem() {
    }

    public OnboardingItem(String title, String description, int imageRes, boolean isLastPage) {
        this.title = title;
        this.description = description;
        this.imageRes = imageRes;
        this.isLastPage = isLastPage;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getImageRes() {
        return imageRes;
    }

    public void setImageRes(int imageRes) {
        this.imageRes = imageRes;
    }

    public boolean isLastPage() {
        return isLastPage;
    }

    public void setLastPage(boolean lastPage) {
        isLastPage = lastPage;
    }

    @Override
    public String toString() {
        return "OnboardingItem{" +
                "title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", imageRes=" + imageRes +
                ", isLastPage=" + isLastPage +
                '}';
    }
}
